<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>{:isset($info['position_id'])?'编辑':'新增'}广告位</h2>
    </div>
    <form action="{:U('saveAdposition')}" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">广告位名称</label>
            <div class="controls">
                <input type="text" class="text input-large" name="position_name" value="{$info.position_name|default=''}">
            </div>
        </div>

       <div class="form-item">
            <label class="item-label">描述</label>
            <div class="controls">
                <textarea name="position_desc" rows="10" cols="100">{$info.position_desc|default=''}</textarea>
            </div>
        </div>

        <div class="form-item">
            <input type="hidden" name="position_id" value="{$info.position_id|default=''}">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav("{:U('adposition')}");
    </script>
</block>